package com.myNovel.novel.service;

import com.myNovel.novel.core.common.resp.RestResp;
import com.myNovel.novel.dao.entity.UserComment;
import com.myNovel.novel.dto.req.UserCommentReqDto;
import com.myNovel.novel.dto.resp.BookCommentRespDto;

/**
 * @Author：Guxx
 * @Package：com.myNovel.novel.service
 * @Date：2024/3/30 16:33
 * @Filename：BookService
 */
public interface BookService {
    /**
     * 发表评论
     *
     * @param dto 评论相关 DTO
     * @return void
     */
    RestResp<Void> saveComment(UserCommentReqDto dto);

    //修改评论
    public RestResp<Void> updateComment(Long userIdm, Long id, String content);

    //删除评论
    public RestResp<Void> deleteComment(Long userId,Long commentId);

    //查询最新评论
    RestResp<BookCommentRespDto> listNewestComments(Long bookId);
}
